<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <style>
    .box1 {
      width: 60px;
      height: 60px;
      margin: 20px auto;
      background: url(images/sprites.png);
      /* 单独指定位置 */
      background-position: -182px 0;
    }
    .box2 {
      width: 27px;
      height: 25px;
      margin: 100px auto;
      /* 简写 */
      background: url(images/sprites.png) -155px -106px;
    }
  </style>
  <body>
    <div class="box1"></div>
    <div class="box2"></div>
  </body>
</html>
